package sudroid;

import java.util.Arrays;

public class MathUtil
{
  public static double[] getExtremeNumbers(double[] paramArrayOfDouble)
  {
    AssertUtil.checkArrayNullOrEmpty(paramArrayOfDouble);
    int i = paramArrayOfDouble.length;
    double[] arrayOfDouble1 = new double[i];
    System.arraycopy(paramArrayOfDouble, 0, arrayOfDouble1, 0, i);
    Arrays.sort(arrayOfDouble1);
    double[] arrayOfDouble2 = new double[2];
    long l1 = arrayOfDouble1[0];
    arrayOfDouble2[0] = l1;
    int j = arrayOfDouble1.length - 1;
    long l2 = arrayOfDouble1[j];
    arrayOfDouble2[1] = l2;
    return arrayOfDouble2;
  }

  public static float[] getExtremeNumbers(float[] paramArrayOfFloat)
  {
    AssertUtil.checkArrayNullOrEmpty(paramArrayOfFloat);
    int i = paramArrayOfFloat.length;
    float[] arrayOfFloat1 = new float[i];
    System.arraycopy(paramArrayOfFloat, 0, arrayOfFloat1, 0, i);
    Arrays.sort(arrayOfFloat1);
    float[] arrayOfFloat2 = new float[2];
    int j = arrayOfFloat1[0];
    arrayOfFloat2[0] = j;
    int k = arrayOfFloat1.length - 1;
    int m = arrayOfFloat1[k];
    arrayOfFloat2[1] = m;
    return arrayOfFloat2;
  }

  public static int[] getExtremeNumbers(int[] paramArrayOfInt)
  {
    AssertUtil.checkArrayNullOrEmpty(paramArrayOfInt);
    int i = paramArrayOfInt.length;
    int[] arrayOfInt1 = new int[i];
    System.arraycopy(paramArrayOfInt, 0, arrayOfInt1, 0, i);
    Arrays.sort(arrayOfInt1);
    int[] arrayOfInt2 = new int[2];
    int j = arrayOfInt1[0];
    arrayOfInt2[0] = j;
    int k = arrayOfInt1.length - 1;
    int m = arrayOfInt1[k];
    arrayOfInt2[1] = m;
    return arrayOfInt2;
  }

  public static long[] getExtremeNumbers(long[] paramArrayOfLong)
  {
    AssertUtil.checkArrayNullOrEmpty(paramArrayOfLong);
    int i = paramArrayOfLong.length;
    int j = i;
    System.arraycopy(paramArrayOfLong, 0, j, 0, i);
    Arrays.sort(j);
    Object localObject = null;
    long l1 = j[0];
    localObject[0] = l1;
    int k = j.length - 1;
    long l2 = j[k];
    localObject[1] = l2;
    return localObject;
  }

  public static boolean isEven(int paramInt)
  {
    if (paramInt % 2 == 0);
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isEven(long paramLong)
  {
    if (paramLong % 2L == 0L);
    for (int i = 1; ; i = 0)
      return i;
  }

  public static double max(double[] paramArrayOfDouble)
  {
    AssertUtil.checkArrayNullOrEmpty(paramArrayOfDouble);
    int i = paramArrayOfDouble.length;
    if (i == 1)
    {
      long l1 = paramArrayOfDouble[0];
      return l1;
    }
    long l2 = paramArrayOfDouble[0];
    int j = 1;
    while (true)
    {
      if (j >= i)
      {
        double d1 = l2;
        break;
      }
      long l3 = paramArrayOfDouble[j];
      double d2 = Math.max(l2, l3);
      j += 1;
    }
  }

  public static float max(float[] paramArrayOfFloat)
  {
    AssertUtil.checkArrayNullOrEmpty(paramArrayOfFloat);
    int i = paramArrayOfFloat.length;
    int j;
    if (i == 1)
    {
      j = paramArrayOfFloat[0];
      return j;
    }
    int k = paramArrayOfFloat[0];
    int m = 1;
    while (true)
    {
      if (m >= i)
      {
        j = k;
        break;
      }
      int n = paramArrayOfFloat[m];
      float f = Math.max(k, n);
      m += 1;
    }
  }

  public static int max(int[] paramArrayOfInt)
  {
    AssertUtil.checkArrayNullOrEmpty(paramArrayOfInt);
    int i = paramArrayOfInt.length;
    int j;
    if (i == 1)
    {
      j = paramArrayOfInt[0];
      return j;
    }
    int k = paramArrayOfInt[0];
    int m = 1;
    while (true)
    {
      if (m >= i)
      {
        j = k;
        break;
      }
      int n = paramArrayOfInt[m];
      k = Math.max(k, n);
      m += 1;
    }
  }

  public static long max(long[] paramArrayOfLong)
  {
    AssertUtil.checkArrayNullOrEmpty(paramArrayOfLong);
    int i = paramArrayOfLong.length;
    long l1;
    if (i == 1)
    {
      l1 = paramArrayOfLong[0];
      return l1;
    }
    long l2 = paramArrayOfLong[0];
    int j = 1;
    while (true)
    {
      if (j >= i)
      {
        l1 = l2;
        break;
      }
      long l3 = paramArrayOfLong[j];
      l2 = Math.max(l2, l3);
      j += 1;
    }
  }

  public static double min(double[] paramArrayOfDouble)
  {
    AssertUtil.checkArrayNullOrEmpty(paramArrayOfDouble);
    int i = paramArrayOfDouble.length;
    if (i == 1)
    {
      long l1 = paramArrayOfDouble[0];
      return l1;
    }
    long l2 = paramArrayOfDouble[0];
    int j = 1;
    while (true)
    {
      if (j >= i)
      {
        double d1 = l2;
        break;
      }
      long l3 = paramArrayOfDouble[j];
      double d2 = Math.min(l2, l3);
      j += 1;
    }
  }

  public static float min(float[] paramArrayOfFloat)
  {
    AssertUtil.checkArrayNullOrEmpty(paramArrayOfFloat);
    int i = paramArrayOfFloat.length;
    int j;
    if (i == 1)
    {
      j = paramArrayOfFloat[0];
      return j;
    }
    int k = paramArrayOfFloat[0];
    int m = 1;
    while (true)
    {
      if (m >= i)
      {
        j = k;
        break;
      }
      int n = paramArrayOfFloat[m];
      float f = Math.min(k, n);
      m += 1;
    }
  }

  public static int min(int[] paramArrayOfInt)
  {
    AssertUtil.checkArrayNullOrEmpty(paramArrayOfInt);
    int i = paramArrayOfInt.length;
    int j;
    if (i == 1)
    {
      j = paramArrayOfInt[0];
      return j;
    }
    int k = paramArrayOfInt[0];
    int m = 1;
    while (true)
    {
      if (m >= i)
      {
        j = k;
        break;
      }
      int n = paramArrayOfInt[m];
      k = Math.min(k, n);
      m += 1;
    }
  }

  public static long min(long[] paramArrayOfLong)
  {
    AssertUtil.checkArrayNullOrEmpty(paramArrayOfLong);
    int i = paramArrayOfLong.length;
    long l1;
    if (i == 1)
    {
      l1 = paramArrayOfLong[0];
      return l1;
    }
    long l2 = paramArrayOfLong[0];
    int j = 1;
    while (true)
    {
      if (j >= i)
      {
        l1 = l2;
        break;
      }
      long l3 = paramArrayOfLong[j];
      l2 = Math.min(l2, l3);
      j += 1;
    }
  }
}

/* Location:           D:\Program Files\eclipse\apktool-r01-3\新浪微博\classes.dex.dex2jar.jar
 * Qualified Name:     sudroid.MathUtil
 * JD-Core Version:    0.6.0
 */